package com.es.util;


import java.util.MissingResourceException;
import java.util.ResourceBundle;

public class ProjectUtility {


	public static String getMessageResourceString(String bundleName,String key){

		ResourceBundle bundle;
		String text = null;
		bundle = ResourceBundle.getBundle(bundleName);

		try{
			text = bundle.getString(key);
		} catch(MissingResourceException e){
			text = "?? key " + key + " not found ??";
		}

		return text;
	}
	
	

}
